<?php

declare(strict_types=1);
/**
 * This file is part of micro-share.
 *
 * @link     https://www.cppo.cn/
 * @contact  1300188034@qq.com
 * @license  https://gitee.com/cppo/micro_share/blob/master/README.md
 */

namespace App\Model;

use Hyperf\DbConnection\Model\Model;

/**
 * @property int $id
 * @property int $app_id
 * @property string $name
 * @property string $content
 * @property int $is_free
 * @property float $price
 * @property int $is_ad_open
 * @property string $download_link
 * @property int $status
 * @property int $create_time
 * @property int $update_time
 */
class DocModel extends Model
{
    public const string CREATED_AT = 'create_time';

    public const string UPDATED_AT = 'update_time';

    public bool $timestamps = true;

    /**
     * The table associated with the model.
     */
    protected ?string $table = 'doc';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = [];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'app_id' => 'integer', 'is_free' => 'integer', 'is_ad_open' => 'integer', 'status' => 'status', 'create_time' => 'integer', 'update_time' => 'integer'];
}
